package com.healthbox.appointmentservice.service.impl;

import com.healthbox.appointmentservice.common.InfoMessage;
import com.healthbox.appointmentservice.service.MessageSender;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;

/**
 * @author pengpeng
 * @date 2022/5/22
 */
@Service
@Slf4j
@Primary
@Profile({"dev"}) // 在开发环境时使用
public class MessageSenderMock implements MessageSender {
    @Override
    public void sendMessage(InfoMessage message) {
        log.info("模拟发短信->" + message);
    }
}
